import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner in=new Scanner(System.in);
		while(true){
			
			StringBuilder sum=new StringBuilder();
			Integer n=in.nextInt();
			for(int i=0;i<n;i++)
			{
				sum.append(Integer.toString(i));
			}
			Integer n1=in.nextInt();
			Integer n2=in.nextInt();
			//String sum1=sum.substring(n1,n2);
			System.out.println(sum.substring(n1,n2));
		}
	}
}


/*import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		while(true)
		{
			int n=input.nextInt();
			StringBuilder str=new StringBuilder();
			for(int i=0;i<n;i++) str.append(Integer.toString(i));
			int start=input.nextInt();
			int end=input.nextInt();
			System.out.println(str.substring(start, end));
		}
	}
}*/

